package com.blog.mapper;

import com.blog.entity.Guestbook;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 电脑小白
* @description 针对表【guestbook】的数据库操作Mapper
* @createDate 2025-07-08 16:31:52
* @Entity com.blog.entity.Guestbook
*/
public interface GuestbookMapper {

    @Insert("insert into guestbook (content,comment_name,comment_image) values(#{content},#{commentName},#{commentImage})")
    void addGuestbook(Guestbook guestbook);

    @Select("select * from guestbook")
    List<Guestbook> getguestbook();
}




